From 2a07ee2dac54d389d48b8e6e16c6c184369abb65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Fri, 14 Oct 2016 21:19:33 +0200 Subject: [PATCH] filechooserbutton: Remove deprecated API --- docs/reference/gtk/gtk4-sections.txt | 2 -- gtk/gtkfilechooserbutton.c | 46 ---------------------------- gtk/gtkfilechooserbutton.h | 5 --- 3 files changed, 53 deletions(-) diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index e87992eff5..4d953292e9 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -1457,8 +1457,6 @@ gtk_file_chooser_button_get_title gtk_file_chooser_button_set_title gtk_file_chooser_button_get_width_chars gtk_file_chooser_button_set_width_chars -gtk_file_chooser_button_get_focus_on_click -gtk_file_chooser_button_set_focus_on_click GTK_FILE_CHOOSER_BUTTON diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index 2a07563673..986101a87b 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -41,7 +41,6 @@ #include "gtkimage.h" #include "gtklabel.h" #include "gtkliststore.h" -#include "deprecated/gtkstock.h" #include "gtktreemodelfilter.h" #include "gtkseparator.h" #include "gtkfilechooserdialog.h" @@ -3117,48 +3116,3 @@ gtk_file_chooser_button_set_width_chars (GtkFileChooserButton *button, gtk_label_set_width_chars (GTK_LABEL (button->priv->label), n_chars); g_object_notify (G_OBJECT (button), "width-chars"); } - -/** - * gtk_file_chooser_button_set_focus_on_click: - * @button: a #GtkFileChooserButton - * @focus_on_click: whether the button grabs focus when clicked with the mouse - * - * Sets whether the button will grab focus when it is clicked with the mouse. - * Making mouse clicks not grab focus is useful in places like toolbars where - * you don’t want the keyboard focus removed from the main area of the - * application. - * - * Since: 2.10 - * - * Deprecated: 3.20: Use gtk_widget_set_focus_on_click() instead - */ -void -gtk_file_chooser_button_set_focus_on_click (GtkFileChooserButton *button, - gboolean focus_on_click) -{ - g_return_if_fail (GTK_IS_FILE_CHOOSER_BUTTON (button)); - - gtk_widget_set_focus_on_click (GTK_WIDGET (button), focus_on_click); -} - -/** - * gtk_file_chooser_button_get_focus_on_click: - * @button: a #GtkFileChooserButton - * - * Returns whether the button grabs focus when it is clicked with the mouse. - * See gtk_file_chooser_button_set_focus_on_click(). - * - * Returns: %TRUE if the button grabs focus when it is clicked with - * the mouse. - * - * Since: 2.10 - * - * Deprecated: 3.20: Use gtk_widget_get_focus_on_click() instead - */ -gboolean -gtk_file_chooser_button_get_focus_on_click (GtkFileChooserButton *button) -{ - g_return_val_if_fail (GTK_IS_FILE_CHOOSER_BUTTON (button), FALSE); - - return gtk_widget_get_focus_on_click (GTK_WIDGET (button)); -} diff --git a/gtk/gtkfilechooserbutton.h b/gtk/gtkfilechooserbutton.h index bf0fe91aeb..19eaa9bd9a 100644 --- a/gtk/gtkfilechooserbutton.h +++ b/gtk/gtkfilechooserbutton.h @@ -87,11 +87,6 @@ gint gtk_file_chooser_button_get_width_chars (GtkFileChooserBu GDK_AVAILABLE_IN_ALL void gtk_file_chooser_button_set_width_chars (GtkFileChooserButton *button, gint n_chars); -GDK_DEPRECATED_IN_3_20_FOR(gtk_widget_get_focus_on_click) -gboolean gtk_file_chooser_button_get_focus_on_click (GtkFileChooserButton *button); -GDK_DEPRECATED_IN_3_20_FOR(gtk_widget_set_focus_on_click) -void gtk_file_chooser_button_set_focus_on_click (GtkFileChooserButton *button, - gboolean focus_on_click); G_END_DECLS -- 2.30.2